package com.hnkywl.sts.entity.jhgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.sys.Gg;
import com.hnkywl.sts.entity.sys.Pm;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * 统配资金计划明细
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-2
 * Time: 上午11:52
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_TPZJJHMX")
@Where(clause = "deleted!='1'")
public class Tpzjjhmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqTpzjjhmx", allocationSize = 1, sequenceName = "SEQ_BIZ_TPZJJHMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqTpzjjhmx")
    private Long id;
    // 物资规格
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "PM_ID")
    private Pm pm;
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "TPZJJH_ID")
    private Tpzjjh tpzjjh;
    //    核定数量
    private Double hdsl;
    //   付款（日期）
    private Date fkrq;
    //   付款（金额）
    private Double fkje;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Pm getPm() {
        return pm;
    }

    public void setPm(Pm pm) {
        this.pm = pm;
    }

    public Tpzjjh getTpzjjh() {
        return tpzjjh;
    }

    public void setTpzjjh(Tpzjjh tpzjjh) {
        this.tpzjjh = tpzjjh;
    }

    public Double getHdsl() {
        return hdsl;
    }

    public void setHdsl(Double hdsl) {
        this.hdsl = hdsl;
    }

    public Date getFkrq() {
        return fkrq;
    }

    public void setFkrq(Date fkrq) {
        this.fkrq = fkrq;
    }

    public Double getFkje() {
        return fkje;
    }

    public void setFkje(Double fkje) {
        this.fkje = fkje;
    }
}
